--------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/Curtis/Dropbox/Restat2017/Table5/data/ageresults2015.log
  log type:  text
 opened on:  27 Jan 2017, 17:07:55

. local groups all /*A01*/ A02 A03 A04 A05 A06 A07 A08 /*female male male_wa_agg*/

. local out_vars lemp hires_rate seps_rate nempsep learnhirns learns  /*crs_rate des_rate lh
> iras lseps nempsep earnsepc lemps turnovrs learns lpayroll*/

. 
.         
.         
.         
. foreach group in `groups' {
  2. set matsize 10000
  3. use "qwi_`group'.dta",clear
  4. 
. qui do ../code/qwi_dataprep_old.do
  5. *drop if inlist(year,"1998","1999")
. *drop if inlist(year,"1998")
. drop if year=="2008" & quarter=="4"
  6. unique state
  7. gen lemps=ln(emps+1)
  8. gen lemp=ln(emp+1)
  9. gen lhiras=ln(hiras)
 10. gen lseps=ln(seps)
 11. gen hires_rate=hiras/emp_base
 12. gen sep_rate=sep/emp_base
 13. gen hire_rate=hira/emp_base
 14. gen seps_rate=seps/emp_base
 15. gen cr_rate=frmjbgn/emp_base
 16. gen de_rate=frmjbls/emp_base
 17. gen crs_rate=frmjbgns/emp_base
 18. gen des_rate=frmjblss/emp_base
 19. gen learns=ln(earns)
 20. gen learnhirns=ln(earnhirns)
 21. gen lpayroll=ln(payroll)
 22. 
. foreach out in `out_vars'{
 23. eststo: qui areg `out' postxeastxint postxeast postxint intxeast windtrend* eindtrend* 
> trendstatedum* i.ind_qtrf [aweight=emp_weight],abs(state_ind) rob cluster(eastind)
 24. *eststo: qui areg `out' postxeastxint postxeast postxint intxeast windtrend* eindtrend*
>  trendstatedum* i.ind_yearf [aweight=emp_weight],abs(stateind) rob cluster(eastind)
. }
 25. 
. esttab using "../Table5.tex",se append title(`group') keep(postxeastxint) star(* 0.10 ** 0
> .05 *** 0.01)         
 26. eststo clear
 27.   
. }
file ind3.dta not found
r(601);

end of do-file

r(601);

. do "/Users/Curtis/Dropbox/Restat2017/Table5/code/qwi_regfile_2015.do"

. 
. 
.     pause on

.     set more off

.     clear all

.     set mem 1G
set memory ignored.
    Memory no longer needs to be set in modern Statas; memory adjustments are performed on
    the fly automatically.

.     *#delimit 
. 
. 
. *log using /home/spec237/Desktop/NBPdata/QWI/results.log, replace
. *cd /home/spec237/Desktop/NBPdata/QWI/
. 
. cd /Users/Curtis/Dropbox/Restat2017/Table5/data
/Users/Curtis/Dropbox/Restat2017/Table5/data

. log using ageresults2015.log, replace
log file already open
r(604);

end of do-file

r(604);

. log close
      name:  <unnamed>
       log:  /Users/Curtis/Dropbox/Restat2017/Table5/data/ageresults2015.log
  log type:  text
 closed on:  27 Jan 2017, 17:10:53
--------------------------------------------------------------------------------------------
